package com.github.framework.beans;

/**
 * @program: springv2
 * @description: 实例的封装
 * @author: Pop
 * @create: 2021-06-20 23:24
 **/
public class BeanWrapper {
    //被封装的实例
    private Object wrapperInstance;
    //被封装的类
    private Class<?> wrapperClass;

    public BeanWrapper(Object instance) {
        this.wrapperClass = instance.getClass();
        this.wrapperInstance = instance;
    }

    public Object getWrapperInstance() {
        return wrapperInstance;
    }

    public void setWrapperInstance(Object wrapperInstance) {
        this.wrapperInstance = wrapperInstance;
    }

    public Class<?> getWrapperClass() {
        return wrapperClass;
    }

    public void setWrapperClass(Class<?> wrapperClass) {
        this.wrapperClass = wrapperClass;
    }


}
